<div class="columns">
    <div class="column is-6 is-offset-3">
        <h1 class="title">添加博文</h1>
        <form action="/post/save" method="post">
            <div class="field">
                <label class="label">标题</label>
                <div class="control">
                    <input class="input" type="text" placeholder="请输入博文标题" name="title">
                </div>
            </div>
            <div class="field">
                <label class="label">作者</label>
                <div class="control">
                    <input class="input" type="text" placeholder="请输入作者姓名" name="author">
                </div>
            </div>
            <div class="field">
                <label class="label">日期</label>
                <div class="control">
                    <input class="input" type="date" name="date">
                </div>
            </div>
             <div class="field">
                <label class="label">标签</label>
                <div class="control">
                    <div class="tags has-addons">
                        <div id="tag-container" class="my-2 mx-2"></div>
                        <input class="input" type="text" id="tag-input" placeholder="添加标签">
                        <input type="hidden" name="tags" id="tag-hidden">
                    </div>
                </div>
            </div>
            <div class="field">
                <label class="label">内容</label>
                <div class="control">
                    <textarea class="textarea" placeholder="请输入博文内容" name="content"></textarea>
                </div>
            </div>
            <div class="field is-grouped">
                <div class="control">
                    <input type="submit" class="button is-link">
                </div>
                <div class="control">
                    <button class="button is-text">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script src="/javascripts/tags.js"></script>